package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 报警器诉求记录表
 * </p>
 *
 * @author guoliang.lao
 * @since 2023-05-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_appeal_log")
@ApiModel(value="AppealLog对象", description="报警器诉求记录表")
public class AppealLog extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "诉求类型 0:报警 1:故障")
    @TableField("appeal_type")
    private Integer appealType;

    @ApiModelProperty(value = "报警/故障记录id t_history_alarm.id/t_history_broken.id")
    @TableField("alarm_broken_id")
    private Long alarmBrokenId;

    @ApiModelProperty(value = "工单记录表id t_gas_workorder_history.id")
    @TableField("workorder_id")
    private Long workorderId;

    @ApiModelProperty(value = "诉求状态：0待处理 1工单处理中 2已处理 3工单处理完成 4未办结 5已办结 6已办结(安装调试)")
    @TableField("appeal_status")
    private Integer appealStatus;

    @ApiModelProperty(value = "处理详情")
    @TableField("appeal_result")
    private String appealResult;

    @ApiModelProperty(value = "操作人姓名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "操作人账号")
    @TableField("user_account")
    private String userAccount;


}
